package com.alibaba.dingtalk.openapi.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 钉钉接口访问异常
 * @author dingtalk
 * @since oldVersion
 * @version v1.0
 */
@Getter
@Setter
public class OApiException extends Exception {

	private static final long serialVersionUID = 3794250441365105227L;

	private int errCode;
	private String errMsg;
	
	public OApiException(int errCode, String errMsg) {
		super("error code: " + errCode + ", error message: " + errMsg);
		this.errCode = errCode;
		this.errMsg = errMsg;
	}
}
